<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ page import="pku.ss.news.model.*"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<jsp:useBean id="news" type="News" scope="request"></jsp:useBean>





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>MyNews--${news.title}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script>   
 
 </script>
  </head>
  <style type="text/css">
body
{
  text-align:center;
  margin: 0 auto;
  width:1020px;
}
form
{
width:960px;
text-align:left;
}
input.submit
{
color: #ffffff;
background:#FF9900;
border: 1px outset #d7b9c9;
font-size:18px;
width:100px;
height:30px;

} 

  </style>
  <body >
    <iframe src="${news.url}" frameborder="0"scrolling="auto" id="iframe" width="100%" height="92%"></iframe>

  <form action="addShare.do" method="post">
  <input type='hidden' name='title' value="${news.title}"/>
  <input type='hidden' name='url' value='${news.url}'/>
  <input type='hidden' name='source' value='${news.source}'/>
  <input type='hidden' name='description' value='${news.description}'/>
  <input type='hidden' name='time' value='<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>'/>
  <input type='submit' class="submit" value="分享新闻"/>
  </form>
  </body>
</html>
